CC=gcc
TARGET=shmem
OBJ=shmem.o project_demo.o msg_queue_peer.o MQTTClient_fun.o cJSON.o
 
CCLAGS=-c 
INCLUDE = cJSON.h MQTTClient_fun.h shmem.h

$(TARGET):$(OBJ)
	$(CC) $^ -o $@  -g -lpthread -lm -l paho-mqtt3c
%.o:%.c
	$(CC)  $(CCLAGS) $<  -o $@ -g

.PHONY:clean
clean:
	rm *.o  -f $(TARGET)
